.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

.clearfix {
    /* IE 6\7专有 */
    *zoom: 1;
}

* {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

.w {
    width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

body {
    background-color: #f3f5f7;
}

/* 头部 stert*/
.header {
    height: 42px;
    /* 注意此地方会层叠w的margin */
    margin: 30px auto;
}

.logo {
    float: left;
    width: 198px;
    height: 42px;
}

/* 导航栏 */
.nav {
    float: left;
    margin-left: 68px;
}

.nav ul li {
    float: left;
    margin: 0 15px;
}

.nav ul li a {
    display: block;
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
}

/* 搜索框 */
.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 50px;
}

.search input {
    float: left;
    width: 342px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 18px;
}

/* 行内块元素，之间有缝隙，盒子装不下，挤到第二行，变成浮动，没有空隙 */
.search button {
    float: right;
    width: 50px;
    height: 42px;
    /* background-color:  #00a4ff; */
    /* 按钮默认有一个边框，手动去掉 */
    border: 0;
    background: url(images/btn.png);
}

/* 个人信息 */
.user {
    float: right;
    height: 42px;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666666;
}

/* 头部 end */

/* banner start */
.banner {
    height: 420px;
    background-color: #1c036c;
}

/* 版心 */
.banner .w {
    height: 420px;
    background: url(images/banner2.png) no-repeat top center;
}

/* 左盒子 */
.item {
    float: left;
    width: 190px;
    height: 420px;
    background: rgba(0, 0, 0, 0.3);
}

.item ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.item ul li a {
    font-size: 14px;
    color: #fff;
}

.item ul li a span {
    float: right;
}

.item ul li a:hover {
    color: #00a4ff;
}

/* 右盒子 */

.course {
    float: right;
    width: 230px;
    height: 300px;
    background: #fff;
    /* 浮动的盒子不会有塌陷问题 */
    margin-top: 50px;
}

.course h3 {
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #9bceea;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 18px;
}


.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #b9b9b9;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #efefef;
}

.bd .allcourse {
    display: block;
    height: 40px;
    line-height: 40px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    color: #00a4ff;
    font-size: 18px;
    text-align: center;
    font-weight: 700;

}

/* banner end */

/* <!-- 精品推荐小模块 start --> */
.goods {
    height: 60px;
    line-height: 60px;
    background-color: #ffffff;
    box-shadow: 0 4px 4px 2px rgba(0, 0, 0, 0.3);
    margin-top: 7px;
}

.goods h3 {
    float: left;
    margin-left: 35px;
    margin-right: 35px;
    color: #00a4ff;
    font-size: 16px;
}

.goods ul li a {
    float: left;
    padding: 0 35px;
    color: #050505;
    font-size: 16px;
    border-left: 1px solid #bfbfbf;
}


.goods .mod {
    float: right;
    margin-right: 22px;

}

.goods .mod a {
    font-size: 12px;
    color: #00a4ff;
}

/* <!-- 精品推荐小模块 end --> */

.text {
    height: 45px;
    margin-top: 35px;
    background-color: #f3f5f7;
}

.text p {
    float: left;
    font-size: 20px;
    color: #494949;
}

.text a {
    float: right;
    margin-top: 10px;
    margin-right: 32px;
    font-size: 12px;
    color: #a5a5a5;
}

/* <!-- 精品推荐 start --> */

/* 把li的父亲宽度。改的足够宽，可以放下5个孩子 */
.advice ul {
    width: 1220px;
}

.advice ul li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin: 0 15px 15px 0;
}


.advice ul li img {
    width: 100%;
}

.advice ul li h3 {
    margin: 20px 20px 20px 25px;
    font-weight: 400;
    font-size: 14px;
    color: #050505;
}

.advice ul li p {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999999;
}

/* <!-- 精品推荐 end --> */

/* <!-- 尾部制作 开始 --> */
.footer {
    height: 415px;
    background-color: #fff;
}

.footer .w {
    padding-top: 35px;

}

.leftbox {
    float: left;
    width: 300px;
    margin-left: 20px;
}

.leftbox p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}

.leftbox a {
    display: block;
    width: 120px;
    height: 34px;
    line-height: 34px;
    border: 1px solid #00a4ff;
    text-align: center;
    font-size: 16px;
    color: #00a4ff;
}

.right {
    float: right;
    width: 580px;
}

.right dl {
    float: left;
    margin-left: 100px;
}

.right dl dt {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;

}

.right dl dd a {
    color: #333;
    font-size: 12px;
}
/* <!-- 尾部制作 结束 --> */